package office.action.workflow.form;

import java.util.Date;

import office.bo.workflow.impl.WorkTask;
import platform.common.bo.IIdentifiableObj;
/**
 * 待办任务对应的Form
 * @author ZhangYQ
 *
 */
public class WorkTaskForm {
	private String id;
	private String name; //审批对象名称
	private String objId;//审批对象id
	private String objClassName;////审批对象类名
	private String submitUser;//提交人
	private Date submitDate;//提交时间
	private String submitUserDeptId;//提交人所在部门
	private String handleUser;//处理人
	private String agentUser; //代办人    此字段暂时可以不用，不往里面存放值，方便以后扩展用
	private Date handleDate;//处理时间
	private String handleIdea;//处理意见
	private int handleState;//处理状态
	private String nodeState; //流程节点状态，处于什么审批状态
	
	public IIdentifiableObj copyPropertiesToBO(IIdentifiableObj newObj) {
		WorkTask bo = (WorkTask)newObj;
		bo.setId(this.id);
		bo.setName(name);
		bo.setObjId(objId);
		bo.setObjClassName(objClassName);
		bo.setSubmitUser(submitUser);
		bo.setSubmitDate(submitDate);
		bo.setSubmitUserDeptId(submitUserDeptId);
		bo.setHandleUser(handleUser);
		bo.setAgentUser(agentUser);
		bo.setHandleDate(handleDate);
		bo.setHandleIdea(handleIdea);
		bo.setHandleState(handleState);
		bo.setNodeState(nodeState);
		return bo;
	}
	
	public void copyPropertiesFromBO(IIdentifiableObj baseBO) {
		WorkTask bo = (WorkTask)baseBO;
		this.id = bo.getId().toString();
		this.name = bo.getName();
		this.objId = bo.getObjId();
		this.objClassName = bo.getObjClassName();
		this.submitUser = bo.getSubmitUser();
		this.submitDate = bo.getSubmitDate();
		this.submitUserDeptId = bo.getSubmitUserDeptId();
		this.handleUser = bo.getHandleUser();
		this.agentUser = bo.getAgentUser();
		this.handleDate = bo.getHandleDate();
		this.handleIdea = bo.getHandleIdea();
		this.handleState = bo.getHandleState();
		this.nodeState = bo.getNodeState();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getObjId() {
		return objId;
	}

	public void setObjId(String objId) {
		this.objId = objId;
	}

	public String getObjClassName() {
		return objClassName;
	}

	public void setObjClassName(String objClassName) {
		this.objClassName = objClassName;
	}

	public String getSubmitUser() {
		return submitUser;
	}

	public void setSubmitUser(String submitUser) {
		this.submitUser = submitUser;
	}

	public Date getSubmitDate() {
		return submitDate;
	}

	public void setSubmitDate(Date submitDate) {
		this.submitDate = submitDate;
	}

	public String getSubmitUserDeptId() {
		return submitUserDeptId;
	}

	public void setSubmitUserDeptId(String submitUserDeptId) {
		this.submitUserDeptId = submitUserDeptId;
	}

	public String getHandleUser() {
		return handleUser;
	}

	public void setHandleUser(String handleUser) {
		this.handleUser = handleUser;
	}

	public String getAgentUser() {
		return agentUser;
	}

	public void setAgentUser(String agentUser) {
		this.agentUser = agentUser;
	}

	public Date getHandleDate() {
		return handleDate;
	}

	public void setHandleDate(Date handleDate) {
		this.handleDate = handleDate;
	}

	public String getHandleIdea() {
		return handleIdea;
	}

	public void setHandleIdea(String handleIdea) {
		this.handleIdea = handleIdea;
	}

	public int getHandleState() {
		return handleState;
	}

	public void setHandleState(int handleState) {
		this.handleState = handleState;
	}

	public String getNodeState() {
		return nodeState;
	}

	public void setNodeState(String nodeState) {
		this.nodeState = nodeState;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	
}
